<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
            <title>Add OfferItem</title>
        <c:import url="/WEB-INF/formating/link.jsp"/>
    </head>
    <body>
        <c:import url="/WEB-INF/formating/menu.jsp"/>
        <div id="conteiner">
            <c:import url="/WEB-INF/formating/sideMenu.jsp"/>
            <div id="main">
                <h1>
		Add OfferItem
                </h1>

                <form:form modelAttribute="offerItem" action="offerItemAdd" method="post">
                    <fieldset>
                        <legend>Add OfferItem</legend>
                        <ra
                            <p>
                                <form:label for="offer" path="offer" cssErrorClass="error">offer</form:label><br/>
                                <form:select path="offer" multiple="false">
                                    <form:options items="${offerList}"/>
                                </form:select>
                                <form:errors path="offer" />
                            </p>
                            <p>
                                <form:label for="product" path="product" cssErrorClass="error">product</form:label><br/>
                                <form:select path="product" multiple="false">
                                    <form:options items="${productList}" itemLabel="name" itemValue="productID"/>
                                </form:select>
                                <form:errors path="product" />
                            </p>
                            <p>
                                <form:label for="price" path="price">price</form:label><br/>
                                <form:input path="price" /> <form:errors path="price"/>
                            </p>
                            <p>
                                <form:label for="profit" path="profit" cssErrorClass="error">profit</form:label><br/>
                                <form:input path="profit" /> <form:errors path="profit"/>
                            </p>
                            <p>
                                <form:label for="pieces" path="pieces" cssErrorClass="error">pieces</form:label><br/>
                                <form:input path="pieces" /> <form:errors path="pieces"/>
                            </p>
                            <p>
                                <form:label for="volume" path="volume" cssErrorClass="error">volume</form:label><br/>
                                <form:input path="volume" /> <form:errors path="volume"/>
                            </p>
                            <p>
                                <form:label for="weight" path="weight" cssErrorClass="error">weight</form:label><br/>
                                <form:input path="weight" /> <form:errors path="weight"/>
                            </p>
                            <p>
                                <form:label for="box" path="box" cssErrorClass="error">box</form:label><br/>
                                <form:select path="box" multiple="false">
                                    <form:options items="${boxList}"/>
                                </form:select>
                                <form:errors path="box" />
                            </p>
                            <p>
                                <input type="submit" name="Save"/>
                            </p>
                    </fieldset>
                </form:form>

                <hr>
                    
                </hr>

                <ul>
                    <li><a href="offer">Back to Offer</a></li>
                </ul>
            </div>
        </div>
        <c:import url="/WEB-INF/formating/foot.jsp"/>
    </body>
</html>